﻿using Logistics.Model;
using Logistics.Service;
using Logistics.Utility;
using Logistics.WebApi.Attributes;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Http;

namespace Logistics.WebApi.Controllers
{
     [MyAuthority]
    public class CityBaseController : ApiController
    {
        /// <summary>
        /// 检查用户凭证并返回用户数据
        /// </summary>
        /// <param name="token"></param>
        /// <returns></returns>
        [HttpPost]
         public ResponseModel GetCityBaseList(wuliu_city_base_query model)
        {
            CityBaseService citybase = new CityBaseService();
            object enty = citybase.GetCityBaseList(model);
            var Resultmod = new ResponseModel();
            if (enty != null)
            {
                Resultmod.InitResultState(GetDataStateEnum.Success);
                Resultmod.mod = enty;
            }
            else
            {
                Resultmod.InitResultState(GetDataStateEnum.Error);
            }
            return Resultmod;
        }
    }
}